<?php
return array(
    'controllers' => array(
        'invokables' => array(
            'UserApi\Controller\LoginUserApi' 	    	=> 	'UserApi\Controller\LoginUserApiController',	
			'UserApi\Controller\RegistrationApi'     	=>	'UserApi\Controller\RegistrationApiController',
			'UserApi\Controller\ForgetPasswordApi'     	=>	'UserApi\Controller\ForgetPasswordApiController',
			'UserApi\Controller\CoursesApi'     		=>	'UserApi\Controller\CoursesApiController',
			'UserApi\Controller\QuestionsApi'     		=>	'UserApi\Controller\QuestionsApiController',
			'UserApi\Controller\ResultsApi'     		=>	'UserApi\Controller\ResultsApiController',
			'UserApi\Controller\SubjectsApi'     		=>	'UserApi\Controller\SubjectsApiController',
			'UserApi\Controller\LevelsApi'     			=>	'UserApi\Controller\LevelsApiController',
			'UserApi\Controller\TechnologyApi'     		=>	'UserApi\Controller\TechnologyApiController',
			'UserApi\Controller\ChangePasswordApi'     		=>	'UserApi\Controller\ChangePasswordApiController',
			'UserApi\Controller\ChangeCourseApi'     		=>	'UserApi\Controller\ChangeCourseApiController',
			'UserApi\Controller\ContactApi'     		=>	'UserApi\Controller\ContactApiController',
			'UserApi\Controller\LevelCompletedApi'     		=>	'UserApi\Controller\LevelCompletedApiController',
		),
    ),
    // The following section is new` and should be added to your file
    'router' => array(
        'routes' => array(		
            'registration' => array(
                'type'    => 'Segment',
                'options' => array(
                    'route'    => '/registration[/:id]',
                    'constraints' => array(
                        'id' => '[%&@*.;a-zA-Z0-9][%&@*.;a-zA-Z0-9_-]*',
                    ),
                    'defaults' => array(
                        'controller' => 'UserApi\Controller\RegistrationApi',
                    ),
                ),
            ),
			
			'login' => array(
				'type'    => 'Segment',
				'options' => array(
					'route'    => '/login[/:id]',
					'constraints' => array(
						'id' => '[%&@*.;a-zA-Z0-9][%&@*.;a-zA-Z0-9_-]*',
					),
					'defaults' => array(
						'controller' => 'UserApi\Controller\LoginUserApi',
					),
				),
			),
			'forgetpassword' => array(
				'type'    => 'Segment',
				'options' => array(
					'route'    => '/forgetpassword[/:id]',
					'constraints' => array(
						'id' => '[%&@*.;a-zA-Z0-9][%&@*.;a-zA-Z0-9_-]*',
					),
					'defaults' => array(
						'controller' => 'UserApi\Controller\ForgetPasswordApi',
					),
				),
			),
			'addcourses' => array(
				'type'    => 'Segment',
				'options' => array(
					'route'    => '/addcourses[/:id]',
					'constraints' => array(
						'id' => '[%&@*.;a-zA-Z0-9][%&@*.;a-zA-Z0-9_-]*',
					),
					'defaults' => array(
						'controller' => 'UserApi\Controller\CoursesApi',
					),
				),
			),
			'addquestions' => array(
				'type'    => 'Segment',
				'options' => array(
					'route'    => '/addquestions[/:id]',
					'constraints' => array(
						'id' => '[%&@*.;a-zA-Z0-9][%&@*.;a-zA-Z0-9_-]*',
					),
					'defaults' => array(
						'controller' => 'UserApi\Controller\QuestionsApi',
					),
				),
			),
			'addresults' => array(
				'type'    => 'Segment',
				'options' => array(
					'route'    => '/addresults[/:id]',
					'constraints' => array(
						'id' => '[%&@*.;a-zA-Z0-9][%&@*.;a-zA-Z0-9_-]*',
					),
					'defaults' => array(
						'controller' => 'UserApi\Controller\ResultsApi',
					),
				),
			),
			'addsubjects' => array(
				'type'    => 'Segment',
				'options' => array(
					'route'    => '/addsubjects[/:id]',
					'constraints' => array(
						'id' => '[%&@*.;a-zA-Z0-9][%&@*.;a-zA-Z0-9_-]*',
					),
					'defaults' => array(
						'controller' => 'UserApi\Controller\SubjectsApi',
					),
				),
			),
			'getlevels' => array(
				'type'    => 'Segment',
				'options' => array(
					'route'    => '/getlevels[/:id]',
					'constraints' => array(
						'id' => '[%&@*.;a-zA-Z0-9][%&@*.;a-zA-Z0-9_-]*',
					),
					'defaults' => array(
						'controller' => 'UserApi\Controller\LevelsApi',
					),
				),
			),
			'addtechnology' => array(
				'type'    => 'Segment',
				'options' => array(
					'route'    => '/addtechnology[/:id]',
					'constraints' => array(
						'id' => '[%&@*.;a-zA-Z0-9][%&@*.;a-zA-Z0-9_-]*',
					),
					'defaults' => array(
						'controller' => 'UserApi\Controller\TechnologyApi',
					),
				),
			),
			'changepassword' => array(
				'type'    => 'Segment',
				'options' => array(
					'route'    => '/changepassword[/:id]',
					'constraints' => array(
						'id' => '[%&@*.;a-zA-Z0-9][%&@*.;a-zA-Z0-9_-]*',
					),
					'defaults' => array(
						'controller' => 'UserApi\Controller\ChangePasswordApi',
					),
				),
			),
			'ChangeCourse' => array(
				'type'    => 'Segment',
				'options' => array(
					'route'    => '/ChangeCourse[/:id]',
					'constraints' => array(
						'id' => '[%&@*.;a-zA-Z0-9][%&@*.;a-zA-Z0-9_-]*',
					),
					'defaults' => array(
						'controller' => 'UserApi\Controller\ChangeCourseApi',
					),
				),
			),
			'Contact' => array(
				'type'    => 'Segment',
				'options' => array(
					'route'    => '/Contact[/:id]',
					'constraints' => array(
						'id' => '[%&@*.;a-zA-Z0-9][%&@*.;a-zA-Z0-9_-]*',
					),
					'defaults' => array(
						'controller' => 'UserApi\Controller\ContactApi',
					),
				),
			),
			'levelcompleted' => array(
				'type'    => 'Segment',
				'options' => array(
					'route'    => '/levelcompleted[/:id]',
					'constraints' => array(
						'id' => '[%&@*.;a-zA-Z0-9][%&@*.;a-zA-Z0-9_-]*',
					),
					'defaults' => array(
						'controller' => 'UserApi\Controller\LevelCompletedApi',
					),
				),
			),
        ),
    ),
    'view_manager' => array(
        'strategies' => array(
            'ViewJsonStrategy',
        ),
    ),
	
);